package org.ch00.test12;

/*
 *
 *@author XCH
 *@date 2025 - 03 - 12 - 11:15
 *
 */
public class Money extends Thread{
    private BankAccount account;
    private String name;
    private int amount;

    public Money(BankAccount account, String name, int amount) {
        this.account = account;
        this.name = name;
        this.amount = amount;
    }

    @Override
    public void run() {
        account.withdraw(name, amount);

    }
}
